<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
</head>
<body>
    <script type="text/javascript">
        const p = new Promise((resolve, reject) => {
            resolve('OK');
        });

        // 两个回调都会执行
        p.then((val) => {
            console.log(val + "1");
        }, (err) => {
            
        });
        
        p.then((val)=>{
            console.log(val + "2");
        })
    </script>
</body>
</html>